home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Go Ronald
/
Go Ronald Voice Interactive CD.iso
/
Data1.cab
/
_A78B221671294700924B8ABD93D36F0B
/
scripts
/
frame_6
/
DoAction.as
Wrap
Text File
|
2005-08-05
|
1KB
|
45 lines
stop();
var randSnd_arr = new Array("cooltrick","greatmove","awesome");
this.createEmptyMovieClip("fx_mc",this.getNextHighestDepth());
var voiceover_snd = new Sound("fx_mc");
goronald_mc._visible = true;
startover_mc._visible = true;
goronald_mc.onRelease = function()
{
dnaGRG_so.data.fromModule = "true";
dnaGRG_so.flush();
_root.loadNextMovie("MainMenuLauncher.swf");
};
goronald_mc.onRollOver = function()
{
this.gotoAndPlay("rollover");
};
goronald_mc.onRollOut = function()
{
this.gotoAndPlay("rollout");
};
startover_mc.onRelease = function()
{
clickSound.start();
gotoAndStop("Ready");
play();
};
startover_mc.onRollOver = function()
{
redoSound.start();
this.gotoAndPlay("rollover");
};
mApplication.trace("userScore at the end = " + userScore);
if(userScore == 200)
{
voiceover_snd.attachSound("perfect");
voiceover_snd.start();
}
else
{
x = Math.round(Math.random() * 2);
mApplication.trace("x = " + x);
voiceover_snd.attachSound(randSnd_arr[x]);
voiceover_snd.start();
}